#ifndef CARD_H
#define CARD_H

#include <QWidget>
#include <QPainter>
#include <QMouseEvent>
#include <QRandomGenerator>

class Card:public QWidget
{
    Q_OBJECT
public:
    explicit Card(QWidget *parent = nullptr);
    ~Card();
    double randomplace();
    double randomtime();
protected:
    void paintEvent(QPaintEvent *event) override;
    void mousePressEvent(QMouseEvent *event) override;
    void mouseDoubleClickEvent(QMouseEvent *event) override;

signals:
    void sendSelf(Card *w);
};

#endif // CARD_H
